<!DOCTYPE html>
<html>
<head>
    <title>创建记录</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
</head>
<body class="body-white">
<include file="public@nav"/>
<div class="container tc-main">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('updateItem')}">
                <input type="hidden" name="id" value="{$item.id}">
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>分类:</label>
                    <div class="col-md-10 col-sm-10">
                        <select class="form-control" name="category_id" id="input-parent">
                            {$category_options}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="form-required">*</span>消息:</label>
                    <div class="col-md-10 col-sm-10">
                        <input type="text" class="form-control" name="message" value="{$item.message}">
                    </div>
                </div>
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
                    <a class="btn btn-default" href="__URL__">返回</a>
                </div>
            </form>
        </div>
    </div>
    <include file="public@footer"/>
</div>

<include file="public@scripts"/>
</body>
</html>
